<template>
  <div class="about">
    <h1>This is an about page</h1>
    fuqi<input type="number" v-model="fatherValue">
    <button @click="passmoney">转账</button>
    <span>父组件收到的{{sonValue}}</span>
    <CallFather :msg="money" @comfire="msgMethod"></CallFather>

  </div>
</template>
<script>
// import SonComp from '@/components/input-components/SonComp.vue';
import CallFather from '@/components/input-components/CallFather.vue';
export default {
  data() {
    return {
      fatherValue: 0,
      sonValue:"csz",
      money:0
    }
  },
  components: {CallFather},
  methods:{
    passmoney(){
      this.money=this.fatherValue
    },
    msgMethod(value){
      console.log("父组件方法:",value);
      this.sonValue=value;
    }
  }
}
</script>